import { lazy } from "react";

const routerArr = [{
    name: "demo3",
    path: "/demo3",
    component: lazy(() => import("@/pages/demo3/index")),
    children: []
}, {
    name: "login",
    path: "/login",
    component: lazy(() => import("@/pages/login/index")),
    children: []
}, {
    name: "layout/layout-skeleton",
    path: "/niu",
    component: lazy(() => import("@/pages/layout/layout_skeleton/index")),

    children: [{
        name: "demo",
        path: "/niu/demo/:name",
        component: lazy(() => import("@/pages/demo/index")),
        children: []
    }, {
        name: "demo_404",
        path: "*",
        component: lazy(() => import("@/pages/demo_404/index")),
        children: []
    }]
}, {
    name: "404",
    path: "*",
    component: lazy(() => import("@/pages/demo2/index")),
    children: []
}];

export default routerArr;